Initializing an alphanumeric field with the literal character ' '
, '1'
, or '0'
has the same effect as using
the equivalent figurative constant *BLANK
, *ON
, or *OFF
, but the constant version removes ambiguity and makes
the code more readable.
Noncompliant code example
C MOVE ' ' FLD1
/free
fld1 = ' ';
/end-free
Compliant solution
C MOVE *BLANK FLD1
/free
fld1 = *BLANK;
/end-free